﻿using Me.Amon.POS.C;

namespace Me.Amon.POS.M
{
    public class MShop : MPos
    {
        /// <summary>
        /// 门店名称
        /// </summary>
        public string name;
        /// <summary>
        /// 联系人
        /// </summary>
        public string contact;
        /// <summary>
        /// 门店地址
        /// </summary>
        public string address;
        /// <summary>
        /// 门店类型
        /// </summary>
        public int level;
        /// <summary>
        /// 门店邮编
        /// </summary>
        public string postcode;
        /// <summary>
        /// 电话
        /// </summary>
        public string telephone;
        /// <summary>
        /// 手机
        /// </summary>
        public string cellphone;

        public static string GetShopLevelName(object status)
        {
            if (status is int)
            {
                switch ((int)status)
                {
                    case CShop.LEVEL_0:
                        return "旗舰店";
                    case CShop.LEVEL_1:
                        return "一级分店";
                    case CShop.LEVEL_2:
                        return "二级分店";
                    case CShop.LEVEL_3:
                        return "三级分店";
                    case CShop.LEVEL_4:
                        return "四级分店";
                }
            }
            return "未知";
        }
    }
}